﻿using System;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class FileindexModel : INotifyPropertyChanged
    {

        public event PropertyChangedEventHandler PropertyChanged;
        private int _Cabinet_minutes_type_ID;
        private string _Title;
        private string _Title1;
        private string _ReferenceNumber;
        private string _Entered_by;
        private DateTime _Date_entered;
         

        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        {


            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }


        public int Cabinet_minutes_type_ID
        {

            get
            {
                return _Cabinet_minutes_type_ID;
            }
            set
            {
                _Cabinet_minutes_type_ID = value;

                OnPropertyChanged("Cabinet_minutes_type_ID");

            }
        }


        public string Title
        {

            get
            {
                return _Title;
            }
            set
            {
                _Title = value;

                OnPropertyChanged("Title");

            }
        }

        public string Title1
        {

            get
            {
                return _Title1;
            }
            set
            {
                _Title1 = value;

                OnPropertyChanged("Title1");

            }
        }

        public string ReferenceNumber
        {

            get
            {
                return _ReferenceNumber;
            }
            set
            {
                _ReferenceNumber = value;

                OnPropertyChanged("ReferenceNumber");

            }
        }

        public string Entered_by
        {

            get
            {
                return _Entered_by;
            }
            set
            {
                _Entered_by = value;

                OnPropertyChanged("Entered_by");

            }
        }

        public DateTime Date_entered
        {

            get
            {
                return _Date_entered;
            }
            set
            {
                _Date_entered = value;

                OnPropertyChanged("Date_entered");

            }
        }   
    }
}